:root {
  --primary: rgb(22, 82, 240);
  --text: rgb(5, 15, 25);
  --text-muted: rgba(17, 51, 83, 0.6);
  --text-hint: rgba(17, 51, 83, 0.3);
  --divider: rgb(236, 239, 241);
  --background: rgb(255, 255, 255);

  --font-family: Graphik, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
}

.theme--dark {
  --text: white;
  --text-muted: rgba(255, 255, 255, 0.85);
  --text-hint: rgba(255, 255, 255, 0.5);
  --divider: rgb(35, 35, 35);
  --background: rgb(17, 17, 17);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  padding: 24px;
  color: var(--text);
  background-color: var(--background);
}

:root {
  --checker-color: rgb(245, 245, 245);
}

.theme--dark {
  --checker-color: rgb(27, 27, 27);
}

body {
  --size: 10px;
  --color: var(--checker-color);
  background-image: linear-gradient(45deg, var(--color) 25%, transparent 25%),
    linear-gradient(-45deg, var(--color) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--color) 75%),
    linear-gradient(-45deg, transparent 75%, var(--color) 75%);
  background-size: calc(var(--size) * 2) calc(var(--size) * 2);
  background-position: 0 0, 0 var(--size), var(--size) calc(var(--size) * -1),
    calc(var(--size) * -1) 0px;
}

.content {
  display: flex;
  flex-direction: column;
  max-width: 1180px;
  margin: 0px auto;
  padding: 24px;
}

.block {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 32px;
  border: 1px solid var(--divider);
  border-radius: 6px;
  box-shadow: rgba(17, 51, 83, 0.02) 0px 4px 12px 0px;
  background-color: var(--background);
}

h1 {
  font-family: var(--font-family);
  font-size: 3.2rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--text);
}

h2 {
  font-family: var(--font-family);
  font-size: 2.2rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--text);
}

h3 {
  font-family: var(--font-family);
  font-size: 1.8rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--text);
}

h4 {
  font-family: var(--font-family);
  font-size: 1.8rem;
  line-height: 1.3;
  font-weight: 400;
  color: var(--text);
}

.label {
  font-family: var(--font-family);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

p,
li {
  font-family: var(--font-family);
  font-size: 1.4rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-muted);
}

li + li {
  margin-top: 8px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

menu,
ol,
ul {
  list-style: disc;
  list-style-position: inside;
}

hr {
  height: 1px;
  background-color: var(--divider);
  margin: 0;
  padding: 0;
  border: 0;
}

.row {
  display: flex;
  flex-direction: row;
}

.column {
  display: flex;
  flex-direction: column;
}

.thumbnail {
  object-fit: cover;
  object-position: center center;
  border-radius: 6px;
  width: 150px;
  height: 150px;
}

img {
  background-color: var(--divider);
  border: none;
  outline: none;
}

button {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background: var(--background);
  border: 0;
  padding: 0;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text);
}

button.primary {
  background-color: var(--primary);
  color: white;
  font-weight: 700;
}

button:disabled {
  color: var(--text-muted);
}

button.primary:disabled {
  background-color: var(--background);
}

button.primary:focus {
  outline: 0;
  box-shadow: 0 0 0 2px black;
}

button[role='tab'] {
  background-color: transparent;
  margin-right: 32px;
  padding: 12px 0;
  border-bottom-width: 2px;
  border-bottom-style: solid;
  border-bottom-color: transparent;
  color: var(--text-muted);
}

button[role='tab'][aria-selected='true'] {
  border-bottom-color: var(--text);
  color: var(--text);
}

.button {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 12px 16px;
  border: 1px solid var(--divider);
  background-color: var(--background);
  width: auto;
}

svg {
  flex-grow: 0;
  flex-shrink: 0;
}

.input-large {
  font-size: 6rem;
  position: relative;
  border: 0;
  outline: none;
  min-width: 0;
  text-align: center;
  align-self: stretch;
  color: var(--text);
  background-color: var(--background);
}

.input-large::placeholder {
  color: var(--text-hint);
}

.flex-center {
  justify-content: center;
  align-items: center;
}
